<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/',function (){
        return redirect('/admin/users');
    })->name('admin.home');
    $router->resource('users', UserController::class);
    $router->resource('counts', CountController::class);


});
